package cn.melon.view.admin.roll.ctr;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import cn.melon.mod.roll.RollInfo;
import cn.melon.view.admin.roll.RollInfoDialog;
import cn.melon.view.admin.roll.RollJPanel;

public class RollTableMouse extends MouseAdapter{
    
    private RollInfoDialog dialog = null;
    private RollJPanel panel = null;
    
    public RollTableMouse(RollJPanel panel){
        this.panel = panel;
    }
    
    @Override
    public void mouseClicked(MouseEvent e){
        if(e.getClickCount() == 2){
            RollInfo info = panel.getTableRowRoll();
            //dialog = new BookInfoDialog(book,panel);
            dialog = new RollInfoDialog(info, panel);
            dialog.setVisible(true);
        }
    }
}
